<?php 
namespace app\model;
use think\Model;

class User extends Model
{	
    public static function cchRelation($map=[]){
        $data = self::field('id,name,mobile,pk')->where($map)->find();
        return $data;
    }

	public static function getCommonIsCn($key){
		$list = [1=>'是',0=>'否'];
		return $list[$key];
	}

	public static function getCommonIsList(){
		$list = [1=>'是',0=>'否'];
		return $list;
	}

	public static function getStatusCn($key){
        $list = ['未同步','已同步','已实名'];
        return $list[$key];
    }

    public static function getStatusList(){
        $list = ['未同步','已同步','已实名'];
        return $list;
    }
    public static function getStatusColor(){
        $list = ['default','warning','success'];
        return $list;
    }

    public static function getUtypeCn($key){
        $list = ['主账号','子账号'];
        return $list[$key];
    }

    public static function getUtypeList(){
        $list = ['主账号','子账号'];
        return $list;
    }

    public static function getLicenseTypeCn($key){
        $list = ['ID'=>'身份证','BUSINESS'=>'营业执照','ORGANIZATION_CODE'=>'组织机构代码证书','INSTITUTION_LEGAL_PERSON'=>'事业法人证书'];
        return $list[$key];
    }

    public static function getLicenseTypeList(){
        $list = ['ID'=>'身份证','BUSINESS'=>'营业执照','ORGANIZATION_CODE'=>'组织机构代码证书','INSTITUTION_LEGAL_PERSON'=>'事业法人证书'];
        return $list;
    }

    public static function getAccountAttrCn($key){
        $list = ['个人','企业'];
        return $list[$key];
    }

    public static function getAccountAttrList(){
        $list = ['个人','企业'];
        return $list;
    }

    public static function getTrusteeshipCn($key){
        $list = ['非托管','托管'];
        return $list[$key];
    }

    public static function getFreezeCn($key){
        $list = ['解冻','冻结'];
        return $list[$key];
    }



	
}


 ?>